package com.woniuxy.power.core.service.impl;

import com.woniuxy.power.core.model.YdPower;
import com.woniuxy.power.core.mapper.YdPowerMapper;
import com.woniuxy.power.core.model.YdPower;
import com.woniuxy.power.core.model.YdStation;
import com.woniuxy.power.core.service.YdPowerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class YdPowerServiceImpl extends ServiceImpl<YdPowerMapper, YdPower> implements YdPowerService {

    @Resource
    private YdPowerMapper ydPowerMapper;

    @Override
    public List<YdStation> selectByStation(int powerId) {
        List<YdStation> list =  this.ydPowerMapper.selectByStation(powerId);
        return list;
    }
}
